package com.baizan.daka.glide

import android.widget.ImageView
import com.hazz.kotlinmvp.glide.GlideApp
import java.io.File
class ImageLoadHelp {
    companion object{

         fun loadImage(imageView: ImageView,url:String){
             if(url.isNullOrEmpty())return
            GlideApp.with(imageView.context)
                .load(url)
                .into(imageView)
        }

        fun loadImage(imageView: ImageView,url:File){
            GlideApp.with(imageView.context)
                .load(url)
                .into(imageView)
        }
    }
}